<template>
	<fs-page>
		<fs-crud ref="crudRef" v-bind="crudBinding"></fs-crud>
	</fs-page>
</template>

<script lang="ts" setup name="whiteList">
import { ref, toRefs, onMounted } from 'vue';
import { useFs } from '@fast-crud/fast-crud';
import { createCrudOptions } from './crud';
import { useRouter, useRoute, } from 'vue-router'

const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions });

const route = useRoute()
// 页面打开后获取列表数据
onMounted(() => {


	// console.log('query:', route.query)
	crudExpose.setSearchFormData({ form: route.query });

	crudExpose.doRefresh();



});




</script>
